//File: StopLight.cpp
//Desc.: Zach Smith
// Implementation of the StopLight Class
//Updated: 4/9
//asdfASD
#include "StopLight.h"

StopLight::StopLight(void){
	mode = 0;
}	

int StopLight::getMode(){
	return mode;
}

void StopLight::changeMode(int newMode){
	if(newMode < 3 && newMode >= 0){
		mode = newMode;
	}
}

System::String^ StopLight::printMode(){
	return "" + mode;	
}

System::String^ StopLight::outputStats(){
	if(getMode() == 0){
		return "red";
	}else if(getMode() == 1){
		return "yellow";
	}else{
		return "green";
	}
}

//klsfdjkl